//#define  _CRT_SECURE_NO_WARNINGS 1
//#include<stdio.h>
//void menu()
//{
//	printf("**********计算器***************");
//	printf("**1.add*******************2.sub**");
//	printf("**3.mul*******************4.div**");
//	printf("************0.exit***************");
//	printf("*********************************");
//	printf("*********************************");
//}
//int add(int x, int y)
//{
//	return x + y;
//}
//int sub(int x, int y)
//{
//	return x - y;
//}
//int mul(int x, int y)
//{
//	return x * y;
//}
//int div(int x, int y)
//{
//	return x / y;
//}
int clac(int(*pf)(int x,int y))
{
	int x, y, ret;
	scanf("%d%d",&x,&y);
	printf("%d", pf(x, y));
}
////int main()
////{
////	int(*clac[4])(int x, int y) = { add,sub,mul,div };
////	int x, y;
////	int input = 1;
////	int ret = 0;
////	do
////	{
////		menu();
////		printf("请输入\n");
////		switch (input)
////		{
////		case 1:
////		{
////			scanf("%d %d\n", &x, &y);
////			int ret = clac[0](x, y);
////			printf("%d\n", ret);
////			break;
////		}
////		case 2:
////		{
////			scanf("%d %d\n", &x, &y);
////			int ret = clac[1](x, y);
////			printf("%d\n", ret);
////			break;
////		}
////		case 3:
////		{
////			scanf("%d %d\n", &x, &y);
////			int ret = clac[2](x, y);
////			printf("%d\n", ret);
////			break;
////		}
////		case 4:
////		{
////			scanf("%d %d\n", &x, &y);
////			int ret = clac[3](x, y);
////			printf("%d\n", ret);
////			break;
////		}
////		case 0:
////		{
////			break;
////		}
////		default:
////		{
////			printf("输入错误，请重新输入\n");
////		}
////		}
////	} while (input);
////}
//int x, y;
//int main()
//{
//	int(*clac[4])(int x, int y) = { add,sub,mul,div };
//	int input = 0;
//	int ret = 0;
//	while(scanf("%d", &input)!=EOF)
//	{
//		if (input >= 1 && input <= 4)
//		{
//			scanf("%d%d",&x,&y);
//			int ret = clac[input - 1](x, y);
//			printf("%d\n", ret);
//		}
//		else if(input == 0)
//		{
//			return 0;
//		}
//		else
//		{
//			printf("输入错误，请重新输入\n");
//		}
//	}
//	return 0;
//}